Ext.onReady(function(){
	j = {
	    parameters: {
	        userId: 'uu',
	        name: 'nn',
	        email: 'ee'
	    },
	    datasets: [{
	    	datasetId: '001',
	    	records: [{
	    		id: '001',
	    		name: 'xxx1'
	    	}, {
	    		id: '002',
	    		name: 'xxx2'
	    	}]
	    }]
	}
	var b = new Ext.Button({
		text: 'click me',
		renderTo: Ext.getBody(),
		handler: function() {
			Ext.Ajax.request({
			    url: '/myfuse/DataEngineServlet?action=demo&method=callJson',
			    jsonData: j,
			    success: function(response){
			        var r = Ext.util.JSON.decode(response.responseText);
			        if (!r.result) {
			            Ext.Msg.alert('error', r.errorMsg);
			        } else {
			            Ext.Msg.alert('msg', r.parameters.saySomething);
			        }        
			    },
			    failure: function(response){
			        //var r = Ext.util.JSON.decode(response.responseText);
			        Ext.Msg.alert('error', response.responseText);
			    }
			})
		}
	})
	
});